//
//  CAnAlgExerVitalSignsData+Desc.m
//  CareRing
//
//  Created  on 2024/12/14.
//
    
#import <DateTools/DateTools.h>
#import "CAnAlgExerVitalSignsData+Desc.h"
#import "CAnAlgExerData+Desc.h"
#import "CAnAlgAutoDetecActivity+Desc.h"
#import "ConfigModel.h"
@implementation CAnAlgExerVitalSignsData (Desc)
-(NSString *)wholeDesc
{

    NSMutableString *infoString = [NSMutableString new];
    NSDate *date = [NSDate dateWithTimeIntervalSince1970:self.timeStamp];
    
    [infoString appendFormat:@"Date:%@, ", [date formattedDateWithFormat:_L2(L_DATE_FMT)]];
    
    [infoString appendFormat:@"HeartRate:%@ bpm, ", self.heartRate];
    
    [infoString appendFormat:@"hrv:%@, ", self.hrv];
    
    [infoString appendFormat:@"Respiration rate:%u, ", self.respirationRate];
    
    [infoString appendFormat:@"IBI:%@, ", self.ibi];
    
    [infoString appendFormat:@"Stress:%@, ", self.stressValue];
    
    [infoString appendFormat:@"Cardiac Coherence:%@,", self.cardiacCoherence];
    
    [infoString appendFormat:@"vo2:%@, ", self.vo2];
    
    [infoString appendFormat:@"vo2Max:%@, ", self.vo2Max];
    
    [infoString appendFormat:@"Skin Temperature:%@ °C", self.skinTemperature];

    [infoString appendFormat:@"Workout type:%@, ",[CAnAlgExerData workoutTypeDesc:self.exerType]];
    [infoString appendFormat:@"Activity Status:%@, Activity Type:%@", [CAnAlgAutoDetecActivity keepWorkoutDesc:self.keepExeType],  [CAnAlgAutoDetecActivity activityTypeDesc:self.activityType] ];

    return infoString;
    
}
@end
